Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent Namespace / Packager Class / SendEmail Method / SendEmail(Predicate<SessionSummary>,Boolean,String) Method
A delegate to evaluate sessions and determine which ones to send.
True to have every included session marked as read upon successful completion.
Optional. A subject line for the email. If left empty a subject line will be generated.

SendEmail(Predicate<SessionSummary>,Boolean,String) Method
Send the completed package via email using the packaging configuration in the app.config file.
Syntax
'Declaration
 
Public Overloads Sub SendEmail( _
   ByVal sessionMatchPredicate As Predicate(Of SessionSummary), _
   ByVal markAsRead As Boolean, _
   ByVal emailSubject As String _
) 
 

Parameters

sessionMatchPredicate
A delegate to evaluate sessions and determine which ones to send.
markAsRead
True to have every included session marked as read upon successful completion.
emailSubject
Optional. A subject line for the email. If left empty a subject line will be generated.
Exceptions
ExceptionDescription
Indicates a failure to send the email once the package was created.
Remarks
Multiple criteria can be specified and all matching sessions will be sent. Sessions that match more than one item will be sent only once. All criteria are considered inclusive, adding the sessions they match.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also